package justcents.game.sticks;

import justcents.games.andengine.screen.SceneManager;

import org.anddev.andengine.entity.scene.Scene;
import org.anddev.andengine.entity.scene.background.ColorBackground;
import org.anddev.andengine.entity.text.Text;
import org.anddev.andengine.opengl.font.Font;
import org.anddev.andengine.opengl.texture.TextureOptions;
import org.anddev.andengine.opengl.texture.atlas.bitmap.BitmapTextureAtlas;
import org.anddev.andengine.util.HorizontalAlign;

import android.graphics.Color;
import android.graphics.Typeface;

public class GameOfflineMainScreen {
private static Scene scene;
    
    /**
     * Load the scene and any assets we need.
     */
    public static void load()
    {
            scene = new Scene();
            scene.setBackground(new ColorBackground(0.09804f, 0.6274f, 0.8784f));
           
            BitmapTextureAtlas fontTexture = new BitmapTextureAtlas(256, 256, TextureOptions.BILINEAR);
            Font font = new Font(fontTexture, Typeface.create(Typeface.DEFAULT, Typeface.BOLD), 32, true, Color.BLACK);
           
            // note the font/font texture are being loaded
            // for the second time. In practice, it would be best to have
            // some kind of 'GenericAsset' object to handle assets you'll
            // use throughout the application.
           
            SceneManager.loadFont(font);
            SceneManager.loadTexture(fontTexture);
           
            Text text = new Text(100, 60, font, "Second Scene", HorizontalAlign.CENTER);
            scene.attachChild(text);
    }
   
    /**
     * Return the scene for when the scene is called to become active.
     */
    public static Scene run()
    {
            return scene;
    }
   
    /**
     * Unload any assets here - to be called later.
     */
    public static void unload()
    {
           
    }
}
